<?php

/**
 * @author Terry & 千里孤坟
 * @copyright 2009
 */
 
class DefSkill {		
	public function __construct(){
		$this->id = -1;
		$this->on = 0;		//开关
		$this->name = "基类";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
        public function checkex($a) {
                if(!isset($this->ex) && isset($this->excid) && in_array($a->cid,$this->excid)) {
                        $this->name = "<font color=blue>EX".$this->name."</font>";
                        $this->ex = 1;
                        $this->exskset();
                }   
        }

        public function exskset() {
                return 1;
        }  

	public function start($a,$b,$sk) {
		$this->checkex($a);
		$this->action($b,$sk);
	}
	
	public function action($a,$sk) {
		return 0;
	}
	
	public function cancel($a) {
		$a->defskill_status[$this->id]->on = 0;
		$a->defskill_status[$this->id]->n = 0;
	}
	
}

class Down extends DefSkill {
	
	public function __construct(){
		$this->id = 0;
		$this->on = 0;		//开关
		$this->name = "Down";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function action($a,$sk) {
		if(SkillHelper::isdmgskill($sk) == 1) { //仅应对伤害技能
			$sk->hits += 1000;
			$sk->crt -= 1000;
			$sk->down = 1.25;
			$s = $a->name."处于Down状态（受本次攻击后爬起）<br>";
			$_SESSION['show'] .= $s;
			$a->before_status[0]->on = 0;
			$a->standing = 1;
			$this->on = 0;
		}
		return 0;
	}
}

class FlowerArray extends DefSkill {
	
	public function __construct(){
		$this->id = 1;
		$this->on = 0;		//开关
		$this->name = "外法幻花陣";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->permanent = 1;	//持久效果
	}

	public function start($a,$b,$sk) {
		$this->action($a,$b,$sk);
	}

	public function action($a,$b,$sk) {		
		if($b->hp > floor($b->mxhp * 0.3)) {
			return 0;
		}

		if(SkillHelper::isdmgskill($sk)) {
			$tmp = mt_rand(1,100);
			$_SESSION['result'] .= "外法幻花陣发动乱数：".$tmp."<br>";
			if(25 >= $tmp) {
				$_SESSION['show'] .= $b->name."：“呵呵呵……高喊着那样的台词，要是打不中不会很丢脸吗？”<br>";
				$_SESSION['show'] .= $b->name."脚下升腾起无数的花瓣<br>";
				CalHelper::cgdisplay('lili_array.jpg');
				$sk->hits = -1000;
			} else {
				$_SESSION['show'] .= $b->name.$this->name."发动失败<br>";
			}
		}
		return 0;
	}
}

class AbnormalHitUp15For5 extends DefSkill {
	
	public function __construct(){
		$this->id = 2;
		$this->on = 0;		//开关
		$this->name = "淀んだ空気";
		$this->time = 5;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function action($a,$b,$sk) {		
		$sk->ahits += 15;		
		$s = "<br>".$this->name."效果发动！（第".$this->n."回合）。<br>";					
		$_SESSION['show'] .= $s;
		return 0;
	}
	
	public function cancel($a) {
		$a->defskill_status[$this->id]->on = 0;
		$a->defskill_status[$this->id]->n = 0;
		$a->defskill_status[$this->id]->name = '淀んだ空気';
	}
}

class Def extends DefSkill {
	
	public function __construct(){
		$this->id = 3;
		$this->on = 0;		//开关
		$this->name = "防御";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function action($a,$sk) {	
		$s = $a->name."处于防御状态。<br>";
		$_SESSION['show'] .= $s;
		if(SkillHelper::isdmgskill($sk) == 1 && SkillHelper::isaskill($sk) == 1) {
			if(!StatusHelper::has_abn($a) == 27) {	//排除恐怖
				if($a->res[$sk->atk_type] == 5) {
					CalHelper::judgepoint($a,$a,'DEFWEAK');
				} else {
					CalHelper::judgepoint($a,$a,'DEF');
				}
			}	
		}
		return 0;
	}
	
}

class AvoidUp10 extends DefSkill {
	
	public function __construct(){
		$this->id = 4;
		$this->on = 0;		//开关
		$this->name = "アナライズ";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}

	public function start($a,$b,$sk) {
		$this->action($a,$b,$sk);
	}

	public function action($a,$b,$sk) {
		if($this->committer == $a->uuid){
			$sk->hits -= 10;
			$b->analyze = 0.1;
			$_SESSION['show'] .= "<br>".$this->name."效果发动！<br>";
		}
		return 0;
	}
}

class AvoidUp20 extends DefSkill {
	
	public function __construct(){
		$this->id = 5;
		$this->on = 0;		//开关
		$this->name = "マハアナライズ";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function action($a,$sk) {		
		$sk->hits -= 20;
		$a->analyze = 0.2;
		$_SESSION['show'] .= "<br>".$this->name."效果发动！<br>";
		
		return 0;
	}

}

class AllSptGuard extends DefSkill {
	
	public function __construct(){
		$this->id = 6;
		$this->on = 0;		//开关
		$this->name = "二十八宿の守護";
		$this->time = 3;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function action($a,$sk) {		
		//实际逻辑在StatusHelper::pre_status函数中
		return 0;
	}
	
}

class DefShield extends DefSkill {
	
	public function __construct(){
		$this->id = 7;
		$this->on = 0;		//开关
		$this->name = "護りの盾";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->ex = 0;	//持久效果
	}

	public function start($a,$b,$sk) {
		$this->action($a,$b,$sk);
	}
	
	public function action($a,$b,$sk) {		
		if(SkillHelper::isphyskill($sk) == 1) {
			$sk->bdress = 0.5;
			$_SESSION['show'] .= $b->name.$this->name."效果发动，自动反击！<br>";
			$skillfactory = SkillFactory::get();
			list($bg,$atkid) = CalHelper::getitbyuuid($b->uuid);
			list($ag,$defid) = CalHelper::getitbyuuid($a->uuid);
			$s = $skillfactory->getSkill(1);
			$s->pwr = 170;
			$s->hits += 1000;
			$s->nodone = 1;
			$s->all_atk = 1;
			if($this->ex == 1) {
				$s->thru = 1;
			}
			$this->ex = 0;
			$this->cancel($b);
			$s->start($_SESSION[$bg],$_SESSION[$ag],$atkid,$defid,$a);
			unset($s);
		}
		return 0;
	}

}

class BlackD extends DefSkill {
	
	public function __construct(){
		$this->id = 8;
		$this->on = 0;		//开关
		$this->name = "闇夜のドレス";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->started = 0;
	}
	
	public function action($a,$sk) {		
		if($a->hp <= floor($a->mxhp * 0.3)) {
			$_SESSION['show'] .= $a->name."发动".$this->name."，防御率大大提升！<br>";
		} else {
			return 0;
		}
		if(SkillHelper::isdmgskill($sk) == 1) {
				$sk->bdress = 0.6;
		}
		return 0;
	}

}

class GoddnessShield extends DefSkill {
	
	public function __construct(){
		$this->id = 9;
		$this->on = 0;		//开关
		$this->name = "女神の大盾";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->ex = 0;	//持久效果
	}
	
	public function start($a,$b,$sk) {
		$this->action($a,$b,$sk);
	}

	public function action($a,$b,$sk) {		
		if(SkillHelper::isdmgskill($sk) == 1) {
			$dmgset = ($this->ex == 1) ? 0.4 : 0.6;
			if(isset($sk->bdress)) {
				$sk->bdress *= $dmgset;
			} else {
				$sk->bdress = $dmgset;
			}
			$_SESSION['show'] .= "<br>".$this->name."效果发动！<br>";
			$this->ex = 0;
			$this->cancel($b);
		}
		return 0;
	}
}

class ChaosFogDef extends DefSkill {
	
	public function __construct(){
		$this->id = 10;
		$this->on = 0;		//开关
		$this->name = "迷雾";
		$this->time = 999;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function action($a,$sk) {		
		if(SkillHelper::isdmgskill($sk) == 1) {
			$_SESSION['show'] .= "<br>".$this->name."效果发动中<br>";
			$sk->hits -= 25;
		}
		return 0;
	}

	public function cancel($a) {
		$_SESSION['show'] .= $a->name."(".$a->truename.")的迷雾效果解除<br>";
		$a->name = $a->truename;
		$a->defskill_status[$this->id]->on = 0;
	}
	
}

class ArchAngelProtect extends DefSkill {
	
	public function __construct(){
		$this->id = 12;
		$this->on = 0;		//开关
		$this->name = "大天使の加護";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->permanent = 1;	//持久效果
		$this->v = 18;
		$this->excid = array(37);
	}

	public function exskset() {
		$this->v = 20;
	}
	
	public function start($a,$b,$sk) {
		$this->action($a,$b,$sk);
	}
	
	public function action($a,$b,$sk) {	
		if(SkillHelper::ispureomniskill($sk) == 0) {
			if($a->atkskill_status[8]->on == 1 && SkillHelper::isphyskill($sk) == 1) {
					$_SESSION['show'] .= $this->name."的效果被抵消！<br>";
					return 0;
			}
			$sk->hits -= $this->v;
			$_SESSION['result'] .= $this->name."效果发动，".$b->name."回避率上升。<br>";
		}
		return 0;
	}

}

class SoRing extends DefSkill {
	
	public function __construct(){
		$this->id = 13;
		$this->on = 0;		//开关
		$this->name = "ソロモンの指輪";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->permanent = 1;	//持久效果
	}
	
	public function action($a,$sk) {		
		if($sk->puredead == 1 && $sk->dtype < 8 && $sk->dbase > 0) {
			$sk->puredead = 0;
			$_SESSION['show'] .= $a->name."佩戴".$this->name."，即死转化为伤害。<br>";
		}
		return 0;
	}

}

class ColorW extends DefSkill {
	
	public function __construct(){
		$this->id = 14;
		$this->on = 0;		//开关
		$this->name = "極彩の疾風";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function action($a,$sk) {
		if(SkillHelper::isdmgskill($sk) == 1 && $sk->atk_type != 8) {
			$sk->hits -= 30;
			$_SESSION['show'] .= $a->name.$this->name."效果发动，回避大大提升。<br>";
		}
		return 0;
	}

}

class Counter extends DefSkill {
	
	public function __construct(){
		$this->id = 15;
		$this->on = 0;		//开关
		$this->name = "カウンタ";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->permanent = 1;	//持久效果
	}
	
	public function action($a,$sk) {
		if($a->defskill_status[23]->on == 1) return 0; //有物反镜时跳过
		if($a->defskill_status[16]->on == 1 || $a->defskill_status[17]->on == 1 || $a->defskill_status[18]->on == 1) return 0;
		if(SkillHelper::isphyskill($sk) == 1) {
			$tmp = mt_rand(1,100);
			$_SESSION['result'] .= $this->name."发动乱数:".$tmp."<br>";
			if(8 >= $tmp) {
			switch($sk->all_atk){
			case 0:{$sk->ref = 1;break;}
			case 1:{$sk->pwr = 0;break;}
			}
			$_SESSION['show'] .= $this->name."发动成功。<br>";
			}
		}
		return 0;
	}

}

class HeavyCounter extends DefSkill {
	
	public function __construct(){
		$this->id = 16;
		$this->on = 0;		//开关
		$this->name = "ヘビーカウンタ";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->permanent = 1;	//持久效果
	}
	
	public function action($a,$sk) {
		if($a->defskill_status[23]->on == 1) return 0; //有物反镜时跳过
		if($a->defskill_status[17]->on == 1 || $a->defskill_status[18]->on == 1) return 0;
		if(SkillHelper::isphyskill($sk) == 1) {
			$tmp = mt_rand(1,100);
			$_SESSION['result'] .= $this->name."发动乱数:".$tmp."<br>";
			if(13 >= $tmp) {
			switch($sk->all_atk){
			case 0:{$sk->ref = 1;break;}
			case 1:{$sk->pwr = 0;break;}
			}
			$_SESSION['show'] .= $this->name."发动成功。<br>";
			if($a->cid == 123) {
				CalHelper::spec_talk($this,1,"妖精眷恋庇护吾身，开启远离尘世的理想乡 Avalon！");
				CalHelper::cgdisplay('slili_counter.jpg');
			}
			}
		}
		return 0;
	}
}

class HyperCounter extends DefSkill {

	public function __construct(){
		$this->id = 17;
		$this->on = 0;		//开关
		$this->name = "ハイパーカウンタ";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->permanent = 1;	//持久效果
	}
	
	public function action($a,$sk) {
		if($a->defskill_status[23]->on == 1) return 0; //有物反镜时跳过
		if($a->defskill_status[18]->on == 1) return 0;
		if(SkillHelper::isphyskill($sk) == 1) {
			$tmp = mt_rand(1,100);
			$_SESSION['result'] .= $this->name."发动乱数:".$tmp."<br>";
			if(18 >= $tmp) {
			switch($sk->all_atk){
			case 0:{$sk->ref = 1;break;}
			case 1:{$sk->pwr = 0;break;}
			}
			$_SESSION['show'] .= $this->name."发动成功。<br>";
			}
		}
		return 0;
	}
}

class DeathCounter extends DefSkill {

	public function __construct(){
		$this->id = 18;
		$this->on = 0;		//开关
		$this->name = "デスカウンター";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->permanent = 1;	//持久效果
	}
	
	public function action($a,$sk) {
		if($a->defskill_status[23]->on == 1) return 0; //有物反镜时跳过
		if(SkillHelper::isphyskill($sk) == 1) {
			$tmp = mt_rand(1,100);
			$_SESSION['result'] .= $this->name."发动乱数:".$tmp."<br>";
			if(13 >= $tmp) {
				$sk->ref = 1;
				$_SESSION['show'] .= $this->name."发动成功。<br>";
			}
		}
		return 0;
	}

}

class LordProtect extends DefSkill {

	public function __construct(){
		$this->id = 19;
		$this->on = 0;		//开关
		$this->name = "大魔王の加護";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->permanent = 1;	//持久效果
		$this->v = 0.1;
		$this->excid = array(36);
	}

	public function exskset() {
		$this->v = 0.12;
	}
	
	public function action($a,$sk) {
		if(!$this->ex) $this->checkex($a);
		if(SkillHelper::isdmgskill($sk) == 1) {
			$sk->lordg = $this->v;
			$_SESSION['show'] .= $this->name."加成，".$a->name."所<strong><font color=red>受</font></strong>伤害降低<br>";
			if($a->cid == 36) {
				CalHelper::spec_talk($this,1,'现在必须忍耐！');
				CalHelper::cgdisplay('lonelywave_6.jpg');
			}
		}
		return 0;
	}

}

class Jink extends DefSkill {

	public function __construct(){
		$this->id = 20;
		$this->on = 0;		//开关
		$this->name = "見切り";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->permanent = 1;	//持久效果
	}
	
	public function start($a,$b,$sk) {
		$this->action($a,$b,$sk);
	}

	public function action($a,$b,$sk) {
		if($a->atkskill_status[8]->on == 1 && SkillHelper::isphyskill($sk) == 1) {
			$_SESSION['show'] .= $this->name."的效果被抵消！<br>";
			$this->cancel($b);
			return  0;
		}
		if(SkillHelper::isdmgskill($sk) == 1) {
			$sk->hits -= 10;
			$_SESSION['result'] .= $this->name."发动，".$b->name."回避率上升<br>";
		}
		$this->cancel($b);
		return 0;
	}

}

class TrueJink extends DefSkill {

	public function __construct(){
		$this->id = 21;
		$this->on = 0;		//开关
		$this->name = "真見切り";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->permanent = 1;	//持久效果
	}

	public function start($a,$b,$sk) {
		$this->action($a,$b,$sk);
	}

	public function action($a,$b,$sk) {
		if($a->atkskill_status[8]->on == 1 && SkillHelper::isphyskill($sk) == 1) {
			$_SESSION['show'] .= $this->name."的效果被抵消！<br>";
			$this->cancel($b);
			return  0;
		}
		if(SkillHelper::isdmgskill($sk) == 1) {
			$sk->hits -= 30;
			$_SESSION['result'] .= $this->name."发动，".$b->name."回避率大大上升<br>";
		}
		$this->cancel($b);
		return 0;
	}

}

class FlyAway extends DefSkill {

	public function __construct(){
		$this->id = 22;
		$this->on = 0;		//开关
		$this->name = "蜃気楼";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->permanent = 1;	//持久效果
		$this->started = 0;
	}

	public function action($a,$sk = NULL) {
		if($a->hp <= floor($a->mxhp * 0.35)) {
			$_SESSION['show'] .= $a->name."发动".$this->name."回避率上升！<br>";
		} else {
			return 0;
		}

		if(SkillHelper::isdmgskill($sk) == 1) {
			$sk->hits -= 15;
		}
		return 0;
	}

}

class PhyM extends DefSkill {

	public function __construct(){
		$this->id = 23;
		$this->on = 0;		//开关
		$this->name = "物理反射镜";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->ex = 0;
	}

	public function action($a,$sk) {
		if(SkillHelper::isphyskill($sk) == 1) {
			if($this->ex == 1) {
				$sk->ref = 1;
				$this->ex = 0;
				$this->cancel($a);
			}
			switch($sk->all_atk){
			case 0:{
				if($sk->exprop > 0) $sk->pwr = 0;
				else $sk->ref = 1;
				break;
				}
			case 1:{
				$sk->pwr = 0;
				break;
			}
			}
			$_SESSION['show'] .= $a->name."的".$this->name."发动。<br>";
			$this->cancel($a);
		}
		return 0;
	}
}

class MgrM extends DefSkill {

	public function __construct(){
		$this->id = 24;
		$this->on = 0;		//开关
		$this->name = "魔法反射镜";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
		$this->ex = 0;
	}

	public function action($a,$sk) {
		if(SkillHelper::isallmgcskill($sk) == 1 || $sk->type == 11) {
			if($this->ex == 1) {
				$sk->ref = 1;
				$this->ex = 0;
				$this->cancel($a);
			}
			$sk->hits = -1;
			$sk->ahits -= 1000;
			if($sk->atk_type < 8) {
				if($sk->all_atk == 1) {$sk->pwr = 0;}
				else {$sk->ref = 1;}
			} else {
				$sk->noposta = 1;
				$sk->nopostd = 1;
			}
			$_SESSION['show'] .= $a->name."的".$this->name."发动。<br>";
			$this->cancel($a);
		}
		return 0;
	}
}

class AriS extends DefSkill {

	public function __construct(){
		$this->id = 25;
		$this->on = 0;		//开关
		$this->name = "觉醒";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function start($a,$b,$sk) {
		$this->action($a,$b,$sk);
	}
	
	public function action($a,$b,$sk) {
		if(SkillHelper::iscureskill($sk) == 1) {
			$sk->pwr = floor($sk->pwr/2);
			$_SESSION['show'] .= $b->name."受".$this->name."效果影响，回复能力下降<br>";
		}
		return 0;
	}
}

class Blocked extends DefSkill {

	public function __construct(){
		$this->id = 26;
		$this->on = 0;		//开关
		$this->name = "迦陵頻伽の卵";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}

	public function action($a,$sk) {
		if(SkillHelper::isforblockskill($sk) == 1) {
			$sk->pwr = 0;
			$sk->bodds = 0;
			$sk->ahits -= 1000;
			$sk->shits -= 1000;
			$sk->hits -= 1000;
			$sk->egg = 1;
			$_SESSION['show'] .= $this->name."生效，".$a->name."被替挡，完全闪避此次攻击(一次性)<br>";
			$this->cancel($a);
		}
		return 0;
	}
}


class Blocker extends DefSkill {

	public function __construct(){
		$this->id = 27;
		$this->on = 0;		//开关
		$this->name = "迦陵頻伽の卵";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}

	public function action($a,$sk) {
		if(SkillHelper::isforblockskill($sk) == 1) {
			$sk->charge *= 2;
			$sk->god_abn = 1;
			$sk->thru = 1;
			$_SESSION['show'] .= $this->name."生效，".$a->name."替挡他人，双倍承受此次打击(一次性)<br>";
			$this->cancel($a);
		}
		return 0;
	}
}

class SEncourage extends DefSkill {
	
	public function __construct(){
		$this->id = 29;
		$this->on = 0;		//开关
		$this->name = "天の鼓動";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function action($a,$sk) {		
		$_SESSION['show'] .= $this->name."效果发动中，被异常即死概率减半<br>";	//逻辑在公式里。
		return 0;
	}

}

class HeartEye extends DefSkill {
	
	public function __construct(){
		$this->id = 30;
		$this->on = 0;		//开关
		$this->name = "心眼";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function action($a,$sk) {
		if(SkillHelper::isdmgskill($sk) == 1) {
			$_SESSION['show'] .= $a->name."发动".$this->name."！<br>";
			$sk->crtbuff = -20;
		}
	}

}

class ChaosUndulate extends DefSkill {
	
	public function __construct(){
		$this->id = 31;
		$this->on = 0;		//开关
		$this->name = "混沌の波動";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function start($a,$b,$sk) {
		$this->action($a,$b,$sk);
	}
	
	public function action($a,$b,$sk) {
		if($b->hp > floor($b->mxhp * 0.4)) {
			return 0;
		}
		$sk->ahits -= 15;
		$sk->shits -= 15;
		$_SESSION['show'] .= $this->name."发动，".$b->name."对即死异常回避率上升<br>";
	}

}

class RCloak extends DefSkill {
	
	public function __construct(){
		$this->id = 32;
		$this->on = 0;		//开关
		$this->name = "赤のカポーテ";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function action($a,$sk) {
		if(SkillHelper::isdmgskill($sk) == 1 && $sk->atk_type != 8) {
				$sk->hits -= 35;
				$_SESSION['show'] .= $a->name.$this->name."效果发动，对伤害攻击回避率提升。<br>";
		}
		return 0;
	}
}

?>
